import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 全局样式
import './assets/css/global.css'

// import { Message } from 'element-ui'
// Vue.prototype.$message = Message
// axios配置请求路径
// import http from '@/api/http'
// import api from '@/api/user'
import common from './utils/common'
import http from '@/utils/request'

Vue.prototype.$http = http

Vue.prototype.common = common
Vue.config.productionTip = false

// 在assets文件夹下的http.js中封装的axios的插件
// Vue.use(http)
// Vue.prototype.$ahttp = axios;
// Vue.use(api)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
